package com.peng.service.impl;

import com.peng.dao.impl.workDaoImpl;
import com.peng.dao.workDao;
import com.peng.entity.work;
import com.peng.service.workService;

import java.util.List;

/**
 * Created by 欧阳欣鹏 on 2018/8/7.
 */
public class workServiceImpl implements workService
{

    @Override
    public List<work> li(int status, int workTyp) {
        workDao w=new workDaoImpl();
        return w.li(status,workTyp);
    }

    @Override
    public int delete(int id) {
        workDao w=new workDaoImpl();
        return w.delete(id);
    }

    @Override
    public int insert(work w) {
        workDao wd=new workDaoImpl();
        return wd.insert(w);
    }

    @Override
    public int findbyIdStaff() {
        workDao w=new workDaoImpl();
        return w.findbyIdStaff();
    }

    @Override
    public int findbyIdProduct() {
        workDao w=new workDaoImpl();
        return w.findbyIdProduct();
    }

    @Override
    public work findbuId(int id) {
        workDao w=new workDaoImpl();
        return w.findbuId(id);
    }

    @Override
    public int update(work w) {
        workDao wd=new workDaoImpl();
        return wd.update(w);
    }
}
